dart super constructor

64

In dart, the subclass can inherit all the variables and methods of the parent class, 
with the use of extends keyword but it can’t inherit constructor of the parent class. 
To do so we make use of super constructor in the dart. 

Child_class_constructor() :super() {
...
}

Comments

Submit
0 Comments